package model

import (
	"gorm.io/gorm"
	"time"
)

type Products struct {
	Id        uint64         `gorm:"column:id;type:bigint UNSIGNED;primaryKey;not null;" json:"id"`
	CreatedAt time.Time      `gorm:"column:created_at;type:datetime(3);not null;" json:"created_at"`
	UpdatedAt time.Time      `gorm:"column:updated_at;type:datetime(3);not null;" json:"updated_at"`
	DeletedAt gorm.DeletedAt `gorm:"column:deleted_at;type:datetime(3);default:NULL;" json:"deleted_at"`
	Title     string         `gorm:"column:title;type:varchar(20);comment:商品名称;not null;" json:"title"`    // 商品名称
	Common    string         `gorm:"column:common;type:varchar(255);comment:商品详情;not null;" json:"common"` // 商品详情
}
